package com.lm.delayqueue.example;

public class DelayQueueExample {
    public static void main(String[] args) throws InterruptedException {
        OrderDelayQueueManager manager = new OrderDelayQueueManager();
        manager.start();

        manager.addOrder("ORDER1001", 5);
        manager.addOrder("ORDER1002", 10);
        manager.addOrder("ORDER1003", 7);

        // 主线程睡眠以等待子线程输出
        Thread.sleep(15_000);
    }
}